package edu.yngsxy.dsstudyApi.core.ai.service;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 多轮对话消息
 * @author qyc
 */
@Data
public class MultiTurnChatMessage {
    @Schema(title = "用户id", description = "用户标识", requiredMode =Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "userId不能为空")
    private   String userId;      // 用户标识
    @Schema(title = "消息内容", description = "用户输入的消息", requiredMode =Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "msg不能为空")
    private  String msg;
    @Schema(title = "会话ID", description = "用于多轮对话，开始会话时为空，由系统生成返回给用户，用户下次请求时带上")
    private String sessionId;    // 会话ID(可选)
}

